package com.weds.edwx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weds.core.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

public class NoticeEntity extends BaseEntity implements Serializable {

    @ApiModelProperty(required = true, dataType = "String", example = "-1", value = "企业编号")
    private String userSerial;

    @ApiModelProperty(required = true, dataType = "String", example = "2345312", value = "编号")
    private String xh;

    @ApiModelProperty(required = true, dataType = "String", example = "-1", value = "通知标题")
    private String newsTitle;

    @ApiModelProperty(required = true, dataType = "String", example = "-1", value = "通知内容")
    private String newsValues;

    @ApiModelProperty(required = true, dataType = "int", example = "-1", value = "置顶")
    private int toTop;

    @ApiModelProperty(required = true, dataType = "String", example = "-1", value = "顶部图片")
    private String topImg;

    @ApiModelProperty(required = true, dataType = "String", example = "-1", value = "底部图片")
    private String endImg;

    @ApiModelProperty(required = true, dataType = "int", example = "-1", value = "是否已读")
    private int isRead;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(required = true, dataType = "Date", example = "2020-03-06 16:37:55", value = "创建时间")
    private Date newsDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(required = true, dataType = "Date", example = "2020-03-06 16:37:55", value = "阅读时间")
    private Date readTime;

    public String getUserSerial() {
        return userSerial;
    }

    public void setUserSerial(String userSerial) {
        this.userSerial = userSerial;
    }

    public String getXh() {
        return xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public String getNewsValues() {
        return newsValues;
    }

    public void setNewsValues(String newsValues) {
        this.newsValues = newsValues;
    }

    public int getToTop() {
        return toTop;
    }

    public void setToTop(int toTop) {
        this.toTop = toTop;
    }

    public String getTopImg() {
        return topImg;
    }

    public void setTopImg(String topImg) {
        this.topImg = topImg;
    }

    public String getEndImg() {
        return endImg;
    }

    public void setEndImg(String endImg) {
        this.endImg = endImg;
    }

    public int getIsRead() {
        return isRead;
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;
    }

    public Date getNewsDate() {
        return newsDate;
    }

    public void setNewsDate(Date newsDate) {
        this.newsDate = newsDate;
    }

    public Date getReadTime() {
        return readTime;
    }

    public void setReadTime(Date readTime) {
        this.readTime = readTime;
    }
}
